package com.koron.bean.base;

import com.koron.bean.annocation.FillField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @ClassName BaseBean
 * @description
 * @Author zhouj
 * @Date 2021/7/6 9:42
 */
@Data
public class BaseBean {

    @FillField
    @ApiModelProperty(value = "唯一id")
    private String id;

    @FillField
    @ApiModelProperty(value = "创建人账号", hidden = true)
    private String createBy;

    @FillField
    @ApiModelProperty(value = "创建人姓名", hidden = true)
    private String createByName;

    @FillField
    //@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    //@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间", hidden = true)
    private Date createTime;

    @FillField
    @ApiModelProperty(value = "更新人账号", hidden = true)
    private String updateBy;

    @FillField
    @ApiModelProperty(value = "更新人姓名", hidden = true)
    private String updateByName;

    @FillField
    //@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    //@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "更新时间", hidden = true)
    private Date updateTime;

    @FillField
    @ApiModelProperty(value = "删除标志", hidden = true)
    private Integer deleteFlag = 0;

    @FillField(alias = "orgId")
    @ApiModelProperty(value = "创建单位ID", hidden = true)
    private String deptId;

    @FillField(alias = "orgName")
    @ApiModelProperty(value = "创建单位名称", hidden = true)
    private String deptName;

    @ApiModelProperty(value = "多语言格式标志", hidden = true)
    private String language;
}
